// DriveNotes. Copyright (c) 2011, Andrei Senchuk. All rights reserved.
package net.taviscaron.drivenotes.shared.service;

import java.util.List;
import javax.jws.WebService;
import net.taviscaron.drivenotes.shared.exceptions.InvalidEntityException;
import net.taviscaron.drivenotes.shared.model.entity.Place;
import net.taviscaron.drivenotes.shared.model.entity.User;

/**
 * Place service
 * @author Andrei Senchuk
 */
@WebService(targetNamespace="http://endpoint.service.server.drivenotes.taviscaron.net/")
public interface PlaceService {
    public List<Place> findPlacesByUser(User user);
    public Place findPlace(Long id, User author);
    public void savePlace(Place place) throws InvalidEntityException;
    public void removePlaceById(Long id);
}
